import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    }, {
        url: `/api/product/list.do`, //商品管理
        method: "post",
        params: query
    }, {
        url: `/api/product/set_sale_status.do`, //商品管理
        method: "post",
        params: data
    }, {
        url: `/api/product/search.do`, //商品管理
        method: "post",
        params: data
    });
};